var restify= require('restify'),app= restify.createServer(),path= require('path');

app.use(restify.queryParser())
app.use(restify.CORS())
app.use(restify.fullResponse())
app.use(restify.gzipResponse())
app.use(restify.acceptParser(app.acceptable))
app.get('/', function (req, res, next){
  var data = require('fs').readFileSync(path.join(__dirname, 'index.html'),'utf-8');
  res.status(200);
  res.header('Content-Type', 'text/html');
  res.end(data.toString());
})
app.get(/^.*\.(html|png|svg|css|js|ico)$/,restify.serveStatic({directory:__dirname}));
app.listen(80)